<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>递归求阶乘</title>
		<script type="text/javascript">
			function fn(n) {
				if(n == 1) {
					return 1;
				}
				return n * fn(n-1);
			}
			console.log(fn(10))
		</script>
	</head>
	<body>
	</body>
</html>
